package com.gusto.engine.colfil.neighborhood.storedistance;

import com.gusto.engine.colfil.Prediction;
import com.gusto.engine.colfil.Rating;

/**
 * <p>Implements a special behavior when inserting ratings and predictions.</p>
 * 
 * @author amokrane.belloui@gmail.com
 *
 */
public interface DistanceProcessor {

	public void insertRating(long userId, long itemId, Rating rating, boolean checkExistence);
	public void insertPrediction(long userId, long itemId, Prediction prediction);
	
	public void flushDistances(); 
	
}